home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / batnest.arc / BAT-NEST.DOC
Encoding:
Text File  |  1985-10-25  |  1.3 KB  |  40 lines

  1.                    .BAT files can be NESTED in DOS 2.0 enviroment!
  2.  
  3. Yes, bat files can be nested in DOS 2.0.  Just look up your DOS 2.0 manual
  4. 10-9.  The method is a bit obscure, however.  It involve the COMMAND /C Arg.
  5.  
  6. Example:
  7.  
  8.     test.bat
  9.     --------
  10.         echo off
  11.         masm %1,,,,
  12.         COMMAND /C pascal %2  <- Call the sub-batch file via command /c arg.
  13.         echo off              <- Upon re-enter, echo will be on, reguardless!
  14.         edit
  15.  
  16.     Pascal.bat
  17.     ----------
  18.         . put in your PASCAL diskettes...
  19.         pause
  20.         pas1 %1
  21.         pas2
  22.         link %1,,,
  23.         . put in your original diskettes...
  24.         pause
  25.         EXIT           <-This is very important.  Upon exitting the batch file
  26.                          you have to get out via EXIT.
  27.  
  28.  
  29.  
  30. NOTE:  Each Level of nesting will take a minimum of 3K!
  31.  
  32. Good luck, hope you have fun!
  33.  
  34. Peter Chow 11/13/83
  35. idea from Tech Journal,Nov
  36. ou have fun!
  37.  
  38. Peter Chow 11/13/83
  39. idea from Tech Journal,Nov